<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/dashboard.css"/>

        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>
        <?php
        $this->widget(
                'bootstrap.widgets.TbNavbar', array(
            'type' => 'inverse',
            'brand' => 'TTDT Admin',
            'brandUrl' => Yii::app()->getBaseUrl(true) . '/admin',
            'collapse' => true, // requires bootstrap-responsive.css
            'fixed' => 'top',
            'items' => array(
                array(
                    'class' => 'bootstrap.widgets.TbMenu',
                    'items' => array(
                        array(
                            'label' => 'Menu 1',
                            'url' => '#',
                            'items' => array(
                                array('label' => 'Sub menu 1', 'url' => '#'),
                                array('label' => 'Sub menu 1', 'url' => '#'),
                            )
                        ),
                        array('label' => 'Menu 2', 'url' => '#')
                    ),
                ),
                array(
                    'class' => 'bootstrap.widgets.TbMenu',
                    'htmlOptions' => array('class' => 'pull-right'),
                    'items' => array(
                        '---',
                        array(
                            'label' => 'Chào, ' . Yii::app()->user->name,
                            'url' => '#',
                            'items' => array(
                                array('label' => 'Thông tin', 'url' => array('user/profile')),
                                '---',
                                array('label' => 'Thoát', 'url' => array('/site/logout')),
                            )
                        ),
                    ),
                ),
            ),
                )
        );
        ?>
        <div class="container-fluid">
            <div class="row-fluid">
                <?php echo $content; ?>

            </div>
            <hr></hr>
            <div class="row-fluid">
                <div class="span2"></div>
                <div class="span9">
                    <div id="footer">
                        Copyright &copy; <?php echo date('Y'); ?> by TTDT.<br/>
                        All Rights Reserved.<br/>
                        <?php echo Yii::powered(); ?>
                    </div><!-- footer -->
                </div>
            </div>
        </div>
    </body>
</html>
